/*
 * @Author: cwd
 * @Date: 2022-03-04 10:57:03
 * @LastEditors: cwd
 * @LastEditTime: 2022-06-02 15:17:34
 * @FilePath: \koa2typecsript\src\validator\user.ts
 * @Description:  校验器
 * 
 * Copyright (c) 2022 by cwd, All Rights Reserved. 
 */

import Joi from 'joi'
export const userRegistervalidation = Joi.object({
  mobile: Joi.string().alphanum().required().error(new Error('请输入正确的手机号')),
  password: Joi.string().min(6).max(16).required().error(new Error('请输入大于6位并小于16位的密码')),
 
})

